package router

import (
	"github.com/gin-gonic/gin"
	"web_end/api"
)

func InitProjectRouter(router *gin.RouterGroup) {
	projectGroup := router.Group("project")
	{
		projectGroup.POST("/create", api.CreateProject)
		projectGroup.GET("/item/:id", api.GetProjectById)
		projectGroup.GET("/list/:id", api.GetProjectListByGroupId)
		projectGroup.PUT("/item", api.UpdateProject)
		projectGroup.DELETE("/item", api.DeleteProject)
	}
}
